home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
gfx
/
3d
/
rayshade40_enh2.lha
/
Examples
/
projector.ray
< prev
next >
Wrap
Text File
|
1992-10-15
|
818b
|
38 lines
/*
* Sample program which uses a "projector" light source
* Written by Greg Spencer.
*
* Obviously, this requires an image to project. I used the ever-popular
* mandrill, but you can use what you want.
*
* This is a simple scene, which basically projects the image over a ball
* sitting on a plane.
*/
background .1 .1 .1
eyep 0 0 -40
lookp 0 0 0
up 0 1 0
fov 60 45
report verbose
screen 300 300
outfile testproj.mtv
surface white ambient 0.1 0.1 0.1
diffuse 1.0 1.0 1.0
specular 0.4 0.4 0.4
specpow 10
light 1.0 projector cork.mtv tile 1 1 /* options 'tile' and 'smooth'
are allowed here */
0 10 -30 /* from */
0 0 0 /* to */
1 1 0 /* up (u): v=dirXu */
60 /* u angle */
60 /* v angle */
false /* Don't use R^2 falloff in intensity */
plane white 0 0 0 0 0 -1
sphere white 5 0 0 -10